import request from '@/utils/request'

// 查询经纪人佣金记录列表
export function listBrokerConsumeDetail(query) {
  return request({
    url: '/brokerConsumeDetail/brokerConsumeDetail/list',
    method: 'get',
    params: query
  })
}

// 查询经纪人佣金记录详细
export function getBrokerConsumeDetail(id) {
  return request({
    url: '/brokerConsumeDetail/brokerConsumeDetail/' + id,
    method: 'get'
  })
}

// 新增经纪人佣金记录
export function addBrokerConsumeDetail(data) {
  return request({
    url: '/brokerConsumeDetail/brokerConsumeDetail',
    method: 'post',
    data: data
  })
}

// 修改经纪人佣金记录
export function updateBrokerConsumeDetail(data) {
  return request({
    url: '/brokerConsumeDetail/brokerConsumeDetail',
    method: 'put',
    data: data
  })
}

// 删除经纪人佣金记录
export function delBrokerConsumeDetail(id) {
  return request({
    url: '/brokerConsumeDetail/brokerConsumeDetail/' + id,
    method: 'delete'
  })
}
